package chain_of_responsibility_pattern.demo;

import lombok.Data;

/**
 * @author liwuji
 * @date 2024/1/17
 * @desc
 **/
@Data
public class Leve2 extends Demo{
    private int leve = 2;
    @Override
    void ex(int level) {
        if(this.leve != level){
            this.nextDemo.ex(level);
        }
        System.out.println("leve :" + leve);
    }
}
